//
//  RBInvoiceListCell.m
//  zhongzhenglu
//
//  Created by XL on 2022/8/11.
//

#import "RBInvoiceListCell.h"
#import "UIView+RBAdd.h"
#import "UIScrollView+RBAdd.h"
#import <Masonry.h>
#import "RBThemeConfig.h"
#import <UIColor+YYAdd.h>
#import <UIView+YYAdd.h>

@interface RBInvoiceListCell()

@property (nonatomic, strong) IBOutlet UILabel *nameL;
@property (nonatomic, strong) IBOutlet UIImageView *moreBtn;
@property (nonatomic, strong) IBOutlet UILabel *priceL;
@property (nonatomic, strong) IBOutlet UILabel *timeL;

@property (nonatomic, strong) RBCellModel *cellModel;

@end

@implementation RBInvoiceListCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self zoomSubViewsWithSelf];
    [self.moreBtn rbAddTapGesWithTarget:self action:@selector(moreBtnTapped)];
}

- (void)setCellModel:(RBCellModel *)cellModel
{
    _cellModel = cellModel;
    RBInvoiceListModel *model = cellModel.cellData;
    //
    self.nameL.text = model.company_name;
    //价格
    self.priceL.text = [NSString stringWithFormat:@"¥ %@", model.total_price];
    //时间
    self.timeL.text = model.create_time;
}

- (void)moreBtnTapped
{
    
}

@end
